package com.iris.live.services.data.repositories;

import com.iris.live.services.data.models.Lsh消息Model;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

/**
 * Created by sxy on 2016/7/11.
 */
public interface Lsh消息Repository extends JpaRepository<Lsh消息Model, Integer>, JpaSpecificationExecutor<Lsh消息Model> {

    @Modifying
    @Query("update Lsh消息Model m set m.删除账号 = ?2, m.是否删除 = '是' where m.消息编号 = ?1")
    int delBy消息编号(int id, String username);
}
